﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/AdminMaster.master" AutoEventWireup="true" CodeFile="LocationFeesMaster.aspx.cs" Inherits="Admin_LocationFeesMaster" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table id="tbAssessorLocalFees" runat="server" style="width: 100%;" cellspacing="1" cellpadding="1" border="0" >      
                           <tr id="tr1" runat="server">     
                                                    <td></td>                                               
                                                    <td colspan="4" style="text-align:left; margin-left:0px">
                                                        <h2 >Add Location Fees</h2>
                                                    </td>
                                                </tr>
                           <tr>
                                            <td align="right" class="auto-style13">Location &nbsp;<font color="red">*</font>
                                            </td>
                                            <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                            <td class="auto-style8">
                                                <asp:TextBox ID="txtLocation" placeholder="Enter Fees" runat="server" Width="220px" MaxLength="50">
                                                </asp:TextBox><asp:TextBox ID="txtLocationFeesId" runat="server" Visible="false"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator25" Display="Dynamic" ValidationGroup="gplocfees" ForeColor="red" ControlToValidate="txtLocation" runat="server" ErrorMessage="Enter Location."></asp:RequiredFieldValidator>
                                                <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" ControlToValidate="txtFees" ErrorMessage="Please enter only numbers like 100 or 100.00"
                                                    ValidationExpression="^\d+(\.\d\d)?$" ValidationGroup="gpuser" ForeColor="red" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                            </td>
                                        </tr>
                                        <tr >
                                            <td align="right" class="auto-style13">Fees &nbsp;<font color="red">*</font>
                                            </td>
                                            <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                            <td class="auto-style8">
                                                <asp:TextBox ID="txtFees" placeholder="Enter Fees" runat="server" Width="220px" MaxLength="50"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="reqAssessLocationFees" Display="Dynamic" ValidationGroup="gplocfees" ForeColor="red" ControlToValidate="txtFees" runat="server" ErrorMessage="Enter Fees."></asp:RequiredFieldValidator>
                                                <asp:RegularExpressionValidator ID="revAssessLocationFees" runat="server" ControlToValidate="txtFees" ErrorMessage="Please enter only numbers like 100 or 100.00"
                                                    ValidationExpression="^\d+(\.\d\d)?$" ValidationGroup="gplocfees" ForeColor="red" Display="Dynamic"></asp:RegularExpressionValidator>
                                            </td>
                                        </tr>
                             <tr>
                                                    <td align="right" colspan="4" style="height: 30px; text-align: center">
                                                        <asp:Button ID="btnAddLocFees" runat="server" SkinID="buttonSkin" ValidationGroup="gplocfees" Text="Add" OnClick="btnAddLocFees_Click" />
                                                        &nbsp; &nbsp;
                                                <asp:Button ID="btnClearLocFees" runat="server" CausesValidation="false" SkinID="buttonSkin" Text="Clear" OnClick="btnClearLocFees_Click" ValidationGroup="gplocfees" />
                                                    </td>
                                                </tr>
                                                <tr id="Tr3" runat="server">
                                                    <td align="right" colspan="4" style="height: 10px; text-align: center">
                                                        <div class="grd_table" style="overflow-x: auto;">
                                                            <asp:GridView ID="gvLocationFees" runat="server" AllowPaging="True" Width="95%" AutoGenerateColumns="False" OnRowCommand="gvLocationFees_RowCommand" >
                                                                <Columns>
                                                                    <asp:BoundField DataField="Location" HeaderText="Location">
                                                                        <ItemStyle Width="25%" HorizontalAlign="Left" VerticalAlign="Top" />
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                    </asp:BoundField>

                                                                    <asp:BoundField DataField="Fees" HeaderText="Fees">
                                                                        <ItemStyle Width="40%" HorizontalAlign="Left" />
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                    </asp:BoundField>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkEdit"   runat="server" CausesValidation="false" CommandName="EDIT1"
                                                                                CommandArgument='<%# Eval("LocationFeesId") + ";" + Eval("Location") + ";" + Eval("Fees") %>'>Edit</asp:LinkButton>
                                                                            <%--<asp:LinkButton ID="lnkEdit"   runat="server" CausesValidation="false" onClick="lnkEdit_Click">Edit</asp:LinkButton>--%>
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="15%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkDelete"   runat="server" CausesValidation="false" CommandName="DELETE1"
                                                                                CommandArgument='<%# Eval("LocationFeesId") %>'>Delete</asp:LinkButton>
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="15%" />
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="LocationFeesId" HeaderText="LocationFeesId" Visible="False" />
                                                                </Columns>
                                                                 <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#CCCCCC" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                            </asp:GridView>
                                                        </div>
                                                    </td>
                                                </tr>
                       </table>
</asp:Content>

